lee keeley , 38 , grabbed the unnamed woman and hit her head against a wall before stamping on her head and chest in a courtroom .
the 38-year-old defendant chased her round the courtroom and tore out clumps of her hair after losing his temper in january .
he was jailed for two years and given an indefinite restraining order , preventing him from contacting his former partner in the middle .